package com.baiku.sanhos.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

/**
 * @author ruoLi
 */
@Data
public class UserChildDTO implements Serializable {
    @NotNull(message = "请输入姓名")
    private String nickname;
    private Integer gender;
    private Date birthday;
    @Pattern(regexp = "^1[3456789]\\d{9}$",message = "手机号输入有误")
    private Long phone;
    private String address;
    private String job;
    @Pattern(regexp = "[0-9]+",message = "主用户账号检测有误")
    private String parentUser;
}
